﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interface_Practice
{
    class Worker
    {
        List<IExecutable> exList;
        
        public Worker(List<IExecutable> exList)
        {
            this.exList = exList;
        }

        public void Run()
        {
            foreach (var f in exList)
            {
                f.Execute();
            }
        }
    }
}
